Fix gtk_widget_compute_transform
authorMatthias Clasen <mclasen@redhat.com>
Wed, 20 Feb 2019 00:29:56 +0000 (19:29 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 20 Feb 2019 00:31:16 +0000 (19:31 -0500)
We were collecting all the transforms from widget
up to ancestor, and then trying to collect the
ones from target to ancestor, but failing.

gtk/gtkwidget.c

index f22581d0ab838471680cfc00f831388de4a1aee7..fb376adea29db28ed754d2b5d5b4e405782c41a1 100644 (file)
@@ -11283,7 +11283,7 @@ gtk_widget_compute_transform (GtkWidget         *widget,
     graphene_matrix_t inv;
 
     graphene_matrix_init_identity (&down_transform);
-
+    parent = target;
     while (parent != ancestor)
       {
         graphene_matrix_multiply (&down_transform, &parent->priv->transform, &down_transform);